package Stack;

/**
 * User: cool
 * Date: 2017/11/15
 * Time: 10:57
 */
public class Main {
    public static void main(String[] args){
        LinkedStack linkedStack = new LinkedStack();
        linkedStack.push("1");
        linkedStack.push(2);
        linkedStack.push("王");
        linkedStack.push("4");

        System.out.println(linkedStack.toString());

        System.out.println("top:"+linkedStack.getTop().toString());

        System.out.println(linkedStack.pop().toString());

        System.out.println(linkedStack.toString());

        System.out.println("top:"+linkedStack.getTop().toString());
    }
}
